<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Login</title>
</h:head>
<h:body>
	<ui:composition template="/WEB-INF/templates/template.xhtml">
	<ui:define name="title">
		Login
	</ui:define>
	<ui:define name="content">
	<h:form>
		<table>
			<tr>
				<td><h:outputLabel for="username" value="Benutzername" /></td>
				<td><p:inputText id="username" value="#{loginBean.username}" /></td>
			</tr>
			<tr>
				<td><h:outputLabel for="password" value="Passwort" /></td>
				<td><p:password id="password" value="#{loginBean.password}" feedback="true|false" /></td>
			</tr>
			<tr>
				<td rowspan="2"><p:commandButton id="login" value="Login" action="#{loginBean.doLogin}" ajax="false" /></td>
				<td>
					<p:commandLink id="Link_register" action="registration" ajax="false">
						<h:outputText value="Jetzt Registrieren" />
					</p:commandLink>
				</td>
			</tr>
		</table>
	</h:form>
	</ui:define>
	</ui:composition>
</h:body>
</html>